import request from '@/utils/request'

/**
 * 获取评论接口
 * @param topic_Id
 * @returns {*}
 */
export function fetchCommentsByTopicId(topic_Id) {
    return request({
        url: '/comment/get_comments',
        method: 'get',
        params: {
            topicid: topic_Id
        }
    })
}


/**
 * 添加评论接口
 * @param data
 * @returns {*}
 */
export function pushComment(data) {
    return request({
        url: '/comment/add_comment',
        method: 'post',
        data: data
    })
}
